PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Reaction / Viscera / EVET - The Beast of Eden.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=4 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.003 |
| 26 | fWaveScale=1.291 |
| 27 | fWaveSmoothing=0.450 |
| 28 | fWaveParam=0.080 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.320 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.990 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=120 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=0.89152 |
| 83 | wavecode_0_smoothing=0.82000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.600 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=1 |
| 93 | wavecode_1_bDrawThick=1 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=0.89152 |
| 96 | wavecode_1_smoothing=0.82000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=0.100 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=1 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=0.89152 |
| 109 | wavecode_2_smoothing=0.82000 |
| 110 | wavecode_2_r=0.000 |
| 111 | wavecode_2_g=0.200 |
| 112 | wavecode_2_b=0.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=1 |
| 118 | wavecode_3_bUseDots=1 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=0 |
| 128 | shapecode_0_sides=4 |
| 129 | shapecode_0_additive=0 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=0 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=0.10853 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=1.00531 |
| 138 | shapecode_0_tex_zoom=1.53117 |
| 139 | shapecode_0_r=0.500 |
| 140 | shapecode_0_g=0.000 |
| 141 | shapecode_0_b=0.900 |
| 142 | shapecode_0_a=1.000 |
| 143 | shapecode_0_r2=0.830 |
| 144 | shapecode_0_g2=0.930 |
| 145 | shapecode_0_b2=0.800 |
| 146 | shapecode_0_a2=1.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=0.000 |
| 150 | shapecode_0_border_a=0.000 |
| 151 | shape_0_per_frame1= |
| 152 | shape_0_per_frame2=x = .5; y = .5; |
| 153 | shape_0_per_frame3=a = q22/28; |
| 154 | shape_0_per_frame4=a2 = 0; |
| 155 | shape_0_per_frame5=//a = 1; |
| 156 | shapecode_1_enabled=0 |
| 157 | shapecode_1_sides=4 |
| 158 | shapecode_1_additive=0 |
| 159 | shapecode_1_thickOutline=1 |
| 160 | shapecode_1_textured=0 |
| 161 | shapecode_1_num_inst=1 |
| 162 | shapecode_1_x=0.400 |
| 163 | shapecode_1_y=0.500 |
| 164 | shapecode_1_rad=2.36696 |
| 165 | shapecode_1_ang=0.00000 |
| 166 | shapecode_1_tex_ang=3.45575 |
| 167 | shapecode_1_tex_zoom=0.99305 |
| 168 | shapecode_1_r=0.500 |
| 169 | shapecode_1_g=0.000 |
| 170 | shapecode_1_b=1.000 |
| 171 | shapecode_1_a=0.200 |
| 172 | shapecode_1_r2=0.700 |
| 173 | shapecode_1_g2=0.400 |
| 174 | shapecode_1_b2=0.000 |
| 175 | shapecode_1_a2=0.000 |
| 176 | shapecode_1_border_r=0.500 |
| 177 | shapecode_1_border_g=0.500 |
| 178 | shapecode_1_border_b=0.500 |
| 179 | shapecode_1_border_a=0.000 |
| 180 | shape_1_per_frame1=a2 =0;a = 0; |
| 181 | shape_1_per_frame2=a = q24/2; |
| 182 | shapecode_2_enabled=1 |
| 183 | shapecode_2_sides=44 |
| 184 | shapecode_2_additive=0 |
| 185 | shapecode_2_thickOutline=0 |
| 186 | shapecode_2_textured=0 |
| 187 | shapecode_2_num_inst=1 |
| 188 | shapecode_2_x=0.503 |
| 189 | shapecode_2_y=0.500 |
| 190 | shapecode_2_rad=0.03886 |
| 191 | shapecode_2_ang=0.00000 |
| 192 | shapecode_2_tex_ang=0.00000 |
| 193 | shapecode_2_tex_zoom=0.60986 |
| 194 | shapecode_2_r=1.000 |
| 195 | shapecode_2_g=0.100 |
| 196 | shapecode_2_b=0.000 |
| 197 | shapecode_2_a=0.900 |
| 198 | shapecode_2_r2=1.000 |
| 199 | shapecode_2_g2=1.000 |
| 200 | shapecode_2_b2=1.000 |
| 201 | shapecode_2_a2=0.000 |
| 202 | shapecode_2_border_r=1.000 |
| 203 | shapecode_2_border_g=1.000 |
| 204 | shapecode_2_border_b=1.000 |
| 205 | shapecode_2_border_a=0.000 |
| 206 | shape_2_per_frame1=x = .5+.5*(rand(100)-50)/100; |
| 207 | shape_2_per_frame2=y = .5+.5*(rand(100)-50)/100; |
| 208 | shape_2_per_frame3= |
| 209 | shape_2_per_frame4=r = rand(4)/3; |
| 210 | shape_2_per_frame5=g = rand(4)/3; |
| 211 | shape_2_per_frame6=b = rand(4)/3; |
| 212 | shape_2_per_frame7= |
| 213 | shape_2_per_frame8= |
| 214 | shape_2_per_frame9=is_beat = above(time, t0+.05); |
| 215 | shape_2_per_frame10=t0 = is_beat*time + (1-is_beat)*t0; |
| 216 | shape_2_per_frame11= |
| 217 | shape_2_per_frame12= |
| 218 | shape_2_per_frame13=a = min(q21 ,.9) * is_beat; |
| 219 | shape_2_per_frame14=rad = a*a/3 ; |
| 220 | shape_2_per_frame15= |
| 221 | shapecode_3_enabled=0 |
| 222 | shapecode_3_sides=63 |
| 223 | shapecode_3_additive=0 |
| 224 | shapecode_3_thickOutline=0 |
| 225 | shapecode_3_textured=1 |
| 226 | shapecode_3_num_inst=1 |
| 227 | shapecode_3_x=0.500 |
| 228 | shapecode_3_y=1.000 |
| 229 | shapecode_3_rad=0.54822 |
| 230 | shapecode_3_ang=0.00000 |
| 231 | shapecode_3_tex_ang=0.00000 |
| 232 | shapecode_3_tex_zoom=0.49981 |
| 233 | shapecode_3_r=1.000 |
| 234 | shapecode_3_g=1.000 |
| 235 | shapecode_3_b=1.000 |
| 236 | shapecode_3_a=1.000 |
| 237 | shapecode_3_r2=1.000 |
| 238 | shapecode_3_g2=1.000 |
| 239 | shapecode_3_b2=1.000 |
| 240 | shapecode_3_a2=0.000 |
| 241 | shapecode_3_border_r=0.500 |
| 242 | shapecode_3_border_g=0.500 |
| 243 | shapecode_3_border_b=0.500 |
| 244 | shapecode_3_border_a=0.000 |
| 245 | per_frame_init_1=proxy = 3; pos_z = proxy*100; |
| 246 | per_frame_init_2=movz = 0; |
| 247 | per_frame_init_3=avg = 0; |
| 248 | per_frame_init_4=avg_= 2; |
| 249 | per_frame_1=dec_m = pow (0.95, 30/fps); dec_s = pow (0.99, 30/fps); |
| 250 | per_frame_2= |
| 251 | per_frame_3=beat = bass+mid+treb; |
| 252 | per_frame_4=avg = avg*dec_s + beat*(1-dec_s); |
| 253 | per_frame_5=avg_ = avg_*dec_s + avg*(1-dec_s); |
| 254 | per_frame_6=is_beat = above(beat, 4+avg+peak) * above (time, t0+1); |
| 255 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 256 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_m; |
| 257 | per_frame_9=index = (index + is_beat) %16; |
| 258 | per_frame_10=//index2 = (index2 + is_beat*bnot(index))%8; |
| 259 | per_frame_11=q20 = avg_/3; |
| 260 | per_frame_12=q22 = max(0,peak-.0)+.01; |
| 261 | per_frame_13=q24 = is_beat; |
| 262 | per_frame_14=q27 = index +1; |
| 263 | per_frame_15= |
| 264 | per_frame_16=push = (avg-2.5)/3; |
| 265 | per_frame_17=ax = -(xang + min(max(push,-.7),.7))/3; //Divisor: 1/Frequenz |
| 266 | per_frame_18= |
| 267 | per_frame_19=ax = if (below(ax,0),ax*2,ax); |
| 268 | per_frame_20=vx = vx *(1-1/fps)+ ax/fps; //1/fps: Daempfung |
| 269 | per_frame_21=xang = xang + vx/fps; |
| 270 | per_frame_22=// WINKEL |
| 271 | per_frame_23=zang = 0; |
| 272 | per_frame_24=yang = - .5*sin(time/16); |
| 273 | per_frame_25=//yang = .7; |
| 274 | per_frame_26= |
| 275 | per_frame_27=//BEWEGUNG |
| 276 | per_frame_28=movz= if(above(avg_/3,1.2),1,movz); |
| 277 | per_frame_29=movz = if(below(avg_/3,.9),-1,movz); |
| 278 | per_frame_30=proxy = proxy + movz/fps/4; |
| 279 | per_frame_31=proxy = min(max(proxy,1.1),4); |
| 280 | per_frame_32=proxy = 4-3*abs(sin(time/24)); |
| 281 | per_frame_33=pos_z = dec_s * pos_z + (1-dec_s)*proxy*100; |
| 282 | per_frame_34= |
| 283 | per_frame_35=trelx = trelx + .1*sin(time/11)/fps*yang; |
| 284 | per_frame_36=q5 = trelx; |
| 285 | per_frame_37=trely = trely + xang*.2/fps; q6 = trely; |
| 286 | per_frame_38=//q6 = time*.03; |
| 287 | per_frame_39=vleaf = vleaf + (avg/64)/fps; |
| 288 | per_frame_40=q29 = vleaf; |
| 289 | per_frame_41=lrot = lrot + bass_att/fps*.2; |
| 290 | per_frame_42=q32 = lrot; |
| 291 | per_frame_43= |
| 292 | per_frame_44=ox = 0; oy = 0; oz = pos_z; |
| 293 | per_frame_45=mx = ox*cos(zang) - oy*sin(zang); |
| 294 | per_frame_46=my = ox*sin(zang) + oy*cos(zang); |
| 295 | per_frame_47=ox = mx;oy = my; |
| 296 | per_frame_48=mx = ox*cos(yang) + oz*sin(yang); |
| 297 | per_frame_49=mz = - ox*sin(yang) + oz*cos(yang); |
| 298 | per_frame_50=ox = mx;oz = mz; |
| 299 | per_frame_51=my = oy*cos(xang) - oz*sin(xang); |
| 300 | per_frame_52=mz = oy*sin(xang) + oz*cos(xang); |
| 301 | per_frame_53=oy = my;oz = mz; |
| 302 | per_frame_54=q11=ox; q12 = oy; q13 = oz; //Position |
| 303 | per_frame_55= |
| 304 | per_frame_56=//Vektor x nach rechts |
| 305 | per_frame_57=ox = 1; oy = 0; oz = 0; |
| 306 | per_frame_58=mx = ox*cos(zang) - oy*sin(zang); |
| 307 | per_frame_59=my = ox*sin(zang) + oy*cos(zang); |
| 308 | per_frame_60=ox = mx;oy = my; |
| 309 | per_frame_61=mx = ox*cos(yang) + oz*sin(yang); |
| 310 | per_frame_62=mz = - ox*sin(yang) + oz*cos(yang); |
| 311 | per_frame_63=ox = mx;oz = mz; |
| 312 | per_frame_64=my = oy*cos(xang) - oz*sin(xang); |
| 313 | per_frame_65=mz = oy*sin(xang) + oz*cos(xang); |
| 314 | per_frame_66=oy = my;oz = mz; |
| 315 | per_frame_67=q14=ox; q15 = oy; q16 = oz; |
| 316 | per_frame_68= |
| 317 | per_frame_69= |
| 318 | per_frame_70=//Vektor z nach hinten |
| 319 | per_frame_71=ox = 0; oy = 0; oz = 1;; |
| 320 | per_frame_72= |
| 321 | per_frame_73=mx = ox*cos(zang) - oy*sin(zang); |
| 322 | per_frame_74=my = ox*sin(zang) + oy*cos(zang); |
| 323 | per_frame_75=ox = mx;oy = my; |
| 324 | per_frame_76=mx = ox*cos(yang) + oz*sin(yang); |
| 325 | per_frame_77=mz = - ox*sin(yang) + oz*cos(yang); |
| 326 | per_frame_78=ox = mx;oz = mz; |
| 327 | per_frame_79=my = oy*cos(xang) - oz*sin(xang); |
| 328 | per_frame_80=mz = oy*sin(xang) + oz*cos(xang); |
| 329 | per_frame_81=oy = my; |
| 330 | per_frame_82=oz = mz; |
| 331 | per_frame_83=q17=ox; q18 = oy; q19 = oz; |
| 332 | per_frame_84= |
| 333 | per_frame_85=q31 = 20/pos_z; |
| 334 | per_frame_86=q32 = pos_z; |
| 335 | per_pixel_1=zoom = .995; |
| 336 | warp_1=`sampler sampler_worms; |
| 337 | warp_2=`float3 color, mus; |
| 338 | warp_3=`float2 uv1, uv6; |
| 339 | warp_4=`float dx,dy; |
| 340 | warp_5=` |
| 341 | warp_6=`shader_body { |
| 342 | warp_7=` |
| 343 | warp_8=`uv1 = (uv-.5); |
| 344 | warp_9=` |
| 345 | warp_10=`float2 ang2= tex2D (sampler_noise_hq,uv1/3+.006*time).xy; |
| 346 | warp_11=`uv6 = mul(uv1,float2x2(ang2.y,-ang2.x,ang2.x,ang2.y)); |
| 347 | warp_12=` |
| 348 | warp_13=`mus = abs(.5*cos(uv6.y*14)-(cos(uv6.x*71))); |
| 349 | warp_14=`mus *= float3 (1,.96,.9)/25; |
| 350 | warp_15=` |
| 351 | warp_16=`uv6 = .2*sin(12*uv+rand_frame); |
| 352 | warp_17=`float3 dots = .001/length(uv6)* float3 (0.2,1,1); |
| 353 | warp_18=` |
| 354 | warp_19=`//dots = lum(tex2D (sampler_noise_hq,uv +rand_frame)); |
| 355 | warp_20=`//dots = (dots-.7) * (dots >= .7) * float3 (0.2,1,1); |
| 356 | warp_21=` |
| 357 | warp_22=`mus -= dots; |
| 358 | warp_23=` |
| 359 | warp_24=` |
| 360 | warp_25=`float3 blur = GetBlur1(frac(uv)); |
| 361 | warp_26=` |
| 362 | warp_27=`float2 hor = float2 (texsize.z,0); |
| 363 | warp_28=`float2 ver = float2 (0,texsize.w); |
| 364 | warp_29=`hor = float2 (.004,0); |
| 365 | warp_30=`ver = float2 (0,.004); |
| 366 | warp_31=` |
| 367 | warp_32=` |
| 368 | warp_33=` |
| 369 | warp_34=`float dx = lum(GetPixel(uv+hor)-GetPixel(uv-hor)); |
| 370 | warp_35=`float dy = lum(GetPixel(uv+ver)-GetPixel(uv-ver)); |
| 371 | warp_36=` |
| 372 | warp_37=`float2 zz = float2 (dx,dy); |
| 373 | warp_38=` |
| 374 | warp_39=` |
| 375 | warp_40=`float3 crisp= tex2D(sampler_main,uv+zz*.02); |
| 376 | warp_41=`crisp +=.015 - length(zz)*blur/1.5; |
| 377 | warp_42=` |
| 378 | warp_43=`float3 ret1 = crisp - lum(blur)*.012 + mus; |
| 379 | warp_44=`//ret1 = abs(mus)/2; |
| 380 | warp_45=`ret = ret1 * .99 - .04 ; |
| 381 | warp_46=` |
| 382 | warp_47=` |
| 383 | warp_48=`} |
| 384 | comp_1=`sampler sampler_pw_noise_lq; |
| 385 | comp_2=`static float quality = 2, depth = q31; |
| 386 | comp_3=`float3 neu, rsl, rsl2, rsl3, ret1, screen3, back,lcol, sky; |
| 387 | comp_4=`float2 uv0, uv1, uv2, uv4; |
| 388 | comp_5=`float lprof,lprof2,m,n,dist,cloud,mask, shadow, mask1,lmask,leaves,clshadow,gmask; |
| 389 | comp_6=`static float lav_gnd = 0; |
| 390 | comp_7=`static const float anz = 3; |
| 391 | comp_8=`static float2 mov = float2 (q5,q6); |
| 392 | comp_9=` |
| 393 | comp_10=`static float3 t = float3(q14,q15,q16); |
| 394 | comp_11=`static float3 s = float3(q17,q18,q19); |
| 395 | comp_12=`static float3 ts = -cross(s,t); |
| 396 | comp_13=`static float3 pos = float3 (q11,q12,q13); |
| 397 | comp_14=` |
| 398 | comp_15=`float3 project (float3 pos, float dist) { |
| 399 | comp_16=` float z; |
| 400 | comp_17=` z = dist/mul(cross(ts,-t),screen3) *(1-lav_gnd); |
| 401 | comp_18=` gmask = (z <= 0)*(z >= -8); |
| 402 | comp_19=` return gmask* float3(mul(float2x3(ts,t),cross(pos,screen3))*z/256,-z);} |
| 403 | comp_20=` |
| 404 | comp_21=`float3 lproject (float3 pos, float dist) { |
| 405 | comp_22=` float z; |
| 406 | comp_23=` z = dist/mul(cross(ts,-t),screen3) *(1-lav_gnd) ; |
| 407 | comp_24=` return (z<=0)*(z>=-4)* float3(mul(float2x3(ts,t),cross(pos,screen3))*z/256,-z);} |
| 408 | comp_25=` |
| 409 | comp_26=`float noise2 (float2 uvi) |
| 410 | comp_27=`{return 1*(tex2D (sampler_noise_hq,uvi) + 0*tex2D (sampler_noise_hq,uvi*4)/4);} |
| 411 | comp_28=` |
| 412 | comp_29=`shader_body {uv0 = uv; |
| 413 | comp_30=`screen3 = float3 ((uv-.5)*aspect.xy,1);//wirkt wie zoom / Tele ### |
| 414 | comp_31=` |
| 415 | comp_32=`//*****leaves********** |
| 416 | comp_33=`lav_gnd = tex2D (sampler_noise_hq,uv)*.03; |
| 417 | comp_34=`rsl3 = lproject(pos,1.5) + float3 (q29,-time/118,0) + float3 (mov,0); |
| 418 | comp_35=`float glmask = tex2D (sampler_pw_noise_lq,rsl3.x*.004) >= .3; |
| 419 | comp_36=`uv2 = rsl3.xy*16; |
| 420 | comp_37=`uv2.y += tex2D (sampler_pw_noise_lq,uv2.x/256).g*-2*time; |
| 421 | comp_38=`float3 noise = 8*tex2D (sampler_pw_noise_lq,uv2/256); |
| 422 | comp_39=`lmask = noise.g >= 7.; lmask *= glmask; |
| 423 | comp_40=`uv2 = frac(uv2); |
| 424 | comp_41=`float lside = sin((noise.b-8)*2*time+q32); |
| 425 | comp_42=`float lsize = 3*(noise.g-6); |
| 426 | comp_43=`leaves = lmask*lsize *(3+frac(4*uv2.x/uv2.y))/4 |
| 427 | comp_44=` -26*length((uv2-.5)*float2(1,2/lside)); |
| 428 | comp_45=`lcol = (1+tex2D (sampler_noise_hq,uv2/8+noise))* float3 (.8+lside/4,.5,0);; |
| 429 | comp_46=`lcol -= tex2D (sampler_noise_hq,uv2+noise).r*.25; |
| 430 | comp_47=`leaves = saturate(leaves); |
| 431 | comp_48=` |
| 432 | comp_49=`//**** main part ****** |
| 433 | comp_50=`lav_gnd = 0; |
| 434 | comp_51=`rsl = project (pos, 1)+float3 (time*.006,.6,0); |
| 435 | comp_52=`back = saturate(1-rsl.y); |
| 436 | comp_53=` |
| 437 | comp_54=`float3 back7=back; |
| 438 | comp_55=`if(frame%3==0)back.z=.71-back7.x; |
| 439 | comp_56=` |
| 440 | comp_57=`cloud = saturate(noise2(rsl.xy/8*float2(1,4))-.4)*saturate(.5+back); |
| 441 | comp_58=`back *= slow_roam_sin.wyx*roam_cos.wzy*.6;//float3(.7,.77,.96); |
| 442 | comp_59=` |
| 443 | comp_60=`if(frame%5==0)back.x=.71-back7.y; |
| 444 | comp_61=`if(frame%7==0)back.y=.71-back7.z; |
| 445 | comp_62=` |
| 446 | comp_63=`sky = lerp(back,2*cloud,cloud/2); |
| 447 | comp_64=`//sky = back; |
| 448 | comp_65=`//sky = back + cloud/4; |
| 449 | comp_66=`ret1 = sky; |
| 450 | comp_67=`lprof2 = 0; |
| 451 | comp_68=`for (n=anz; n >= 1; n--) { |
| 452 | comp_69=` dist = (n); lav_gnd = 0; mov += n/anz; |
| 453 | comp_70=` for (m=1; m <= quality; m++) { |
| 454 | comp_71=` rsl = project (pos, dist)+float3 (mov,0); |
| 455 | comp_72=` lprof = .5-lum(GetBlur1(frac(rsl.xy))); //mittelwert null !# |
| 456 | comp_73=` lav_gnd -= lprof/quality*depth/rsl.z; |
| 457 | comp_74=` } |
| 458 | comp_75=` |
| 459 | comp_76=` rsl = project (pos, dist)+float3 (mov,0) ; |
| 460 | comp_77=` rsl2 = project (pos, dist)+float3 (0,0,0); |
| 461 | comp_78=` int first = (n==1); |
| 462 | comp_79=` if (!first) {shadow = saturate(4*GetPixel(frac(rsl2.xy))) ;} |
| 463 | comp_80=` neu = GetPixel(frac(rsl.xy)); |
| 464 | comp_81=` float dista = length(rsl.xy)*.001; |
| 465 | comp_82=` mask = saturate(16/dist*lum(neu))*gmask; |
| 466 | comp_83=` neu *= 1-.5*lum(tex2D (sampler_noise_lq,rsl.xy*4)); |
| 467 | comp_84=` clshadow = clamp (q20*1.6-noise2(rsl.xy*float2(.02,.1)+float2(time*.01,0)),.2,1); |
| 468 | comp_85=` neu *= (1-shadow*.5* (!first))*clshadow; |
| 469 | comp_86=` |
| 470 | comp_87=`// neu *= saturate(noise2(rsl.xy/16+time*.01)+q20-.5+0*(rsl.z)) ; // Abdunkelung hinten |
| 471 | comp_88=` neu = lerp(back, neu, saturate(5-rsl.z)); //Nebel |
| 472 | comp_89=` ret1 = lerp(ret1,neu,mask) ; |
| 473 | comp_90=`} |
| 474 | comp_91=` |
| 475 | comp_92=`rsl = project (pos, dist)+float3 (mov+lprof/2,0); |
| 476 | comp_93=` |
| 477 | comp_94=`ret1 = lerp(ret1,leaves*(1-shadow/2)*clshadow*lcol, leaves*.5*saturate(!mask)); |
| 478 | comp_95=`//ret1 *= clshadow; |
| 479 | comp_96=`//ret = 1-exp(-ret1*2+.1) ; |
| 480 | comp_97=`ret = ret1; |
| 481 | comp_98=` |
| 482 | comp_99=` |
| 483 | comp_100=`} |
| 484 | comp_101=` |
| 485 | comp_102=`written by martin |
| 486 | comp_103=`END |